package com.magist.manage.web.config;

import com.magist.manage.web.converter.JSONHttpMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ConverterConfig implements WebMvcConfigurer {

    // 添加自定义转换器
    @Bean
    public JSONHttpMessageConverter JSONHttpMessageConverter() {
        JSONHttpMessageConverter jsonConverter = new JSONHttpMessageConverter();
        return jsonConverter;
    }

}
